function fibMeno(n:number, meno:number[] = []): number {
    if(n<=1) return n;

    if(meno[n]){
        return meno[n];
    }
    const res = fibMeno(n-1) + fibMeno(n-2)

    meno[n] = res;
    return res; 
}

console.log(fibMeno(10));